﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TX.Core;
using TX.Passport.Models;   

namespace TX.Passport.Repositories
{
    /// <summary>
    /// 安全主体存储库
    /// </summary>
    public interface IPrincipalRepository{        
        IQueryable<Principal> GetPrincipals(QueryOption<Principal> option = null);
        Principal AddPrincipal(Principal model);
        void RemovePrincipal(Principal model);
        void UpdatePrincipal(Principal model);
    }
}